/**
 * @Author yinyunqi
 * @date 2017年12月23日
 * @Content 
 */
package com.yongqi.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yongqi.mapper.MemberMapper;
import com.yongqi.model.Member;

@Service
public class MemberService {
    @Autowired
    MemberMapper memberMapper;
    //添加成员
    public void memberAdd(Member member) {
	memberMapper.addMember(member);
    }
    //查询成员
    public List<Member> memberQuery(Map<String, String> map) {
	List<Member> memberList = memberMapper.queryMember(map);
	return memberList;
    }
    //删除成员
    public void memberDelete(String id) {
	memberMapper.deleteMember(id);
    }
    //根据家庭账户查询成员信息
    public List<String> selectMemberByFamily(String familyAccount){
	List<String> list = memberMapper.selectMemberByFamily(familyAccount);
	return list;
    }
    //Echart查询成员
    public List<Member> echartQueryMember(String familyAccount ) {
	List<Member> memberList = memberMapper.echartQueryMember(familyAccount);
	return memberList;
    }
}

